package entities;

import java.io.Serializable;
import javax.persistence.*;


/**
 * The persistent class for the BESTELLINGEN database table.
 * 
 */
@Entity
public class Bestellingen implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int id;

	private int aantal;

	@Column(name="BESTELLING_ID")
	private int bestellingId;

	private String per;

	private double totaleprijs;

	//bi-directional many-to-one association to Leverancier
    @ManyToOne
	private Leverancier leverancier;

	//bi-directional many-to-one association to Product
    @ManyToOne
	private Product product;

    public Bestellingen() {
    }

	public int getId() {
		return this.id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getAantal() {
		return this.aantal;
	}

	public void setAantal(int aantal) {
		this.aantal = aantal;
	}

	public int getBestellingId() {
		return this.bestellingId;
	}

	public void setBestellingId(int bestellingId) {
		this.bestellingId = bestellingId;
	}

	public String getPer() {
		return this.per;
	}

	public void setPer(String per) {
		this.per = per;
	}

	public double getTotaleprijs() {
		return this.totaleprijs;
	}

	public void setTotaleprijs(double totaleprijs) {
		this.totaleprijs = totaleprijs;
	}

	public Leverancier getLeverancier() {
		return this.leverancier;
	}

	public void setLeverancier(Leverancier leverancier) {
		this.leverancier = leverancier;
	}
	
	public Product getProduct() {
		return this.product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}
	
}